﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wazzup.Engine.Utility
{
    public static class StringHelper
    {
        static public string[] Split(string input, char delimiter = ',')
        {
            char[] separator = { delimiter };
            return (input.Split(separator));
        }
        public static string Reverse(string text)
        {
            char[] cArray = text.ToCharArray();
            string reverse = String.Empty;
            for (int i = cArray.Length - 1; i > -1; i--)
            {
                reverse += cArray[i];
            }
            return reverse;
        }
    }
}
